<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>添加管理员</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="css/main.css">
    <script src="layui/layui.js"></script>
    <script src="js/jquery-1.9.1.min.js"></script>
</head>
<body>
<div class="layui-fluid">
    <form class="layui-form" action="" method="post">

        <div class="layui-form-item" style="margin-top: 10px">
            <label class="layui-form-label">账号：</label>
            <div class="layui-input-block">
                <input type="text" name="userID" value="" required lay-verify="required" placeholder="请填写管理员编号"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">名称：</label>
            <div class="layui-input-block">
                <input type="text" name="userName" value="" required lay-verify="required" placeholder="请填写管理员名称"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码：</label>
            <div class="layui-input-block">
                <input type="text" name="userPwd" value="" required lay-verify="required" placeholder="请填写管理员密码"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">角色：</label>
            <div class="layui-input-block">
                <input type="radio" name="userRoleID" value="0" title="超级管理员">
                <input type="radio" name="userRoleID" value="1" title="普通管理员" checked>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">添加管理员</button>
            </div>
        </div>
    </form>
</div>
<script>
    layui.use(['form'], function () {
        var form = layer.form;
    });
    $(function () {
        $('#righttitle', window.parent.document).text($('title').text());
    });
</script>

</body>
</html>